<!-- 顶部导航 -->
<div class="" role="navigation" style="background: #485562">
  <div class="container">
    <p-growl [(value)]="msgs"></p-growl>
    <div class="navbar-header">
      <button #button class="navbar-toggle" type="button" data-toggle="collapse"
              data-target=".navbar-responsive-collapse" (click)="toggle(button)">
        <span class="sr-only">Toggle Navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a routerLink="posts" class="navbar-brand navbar-brand-my">
        网站首页
      </a>
    </div>
    <div class="collapse navbar-collapse navbar-responsive-collapse" aria-expanded="false">
      <ul class="nav navbar-nav">
        <li routerLinkActive="active" class="dropdown">
          <a routerLink="posts">动态</a>
        </li>
        <li class="dropdown">
          <a routerLink="echart">集成图表</a>
        </li>
        <!--<li class="dropdown">-->
        <!--<a routerlink="map">{{'app.gaodemap' | translate}}</a>-->
        <!--</li>-->
        <!--<li class="dropdown">-->
        <!--<a routerlink="jquery">集成jquery</a>-->
        <!--</li>-->
        <!--<li class="dropdown">-->
        <!--<a routerlink="jsplumb">{{'app.jsplumb' | translate}}</a>-->
        <!--</li>-->
        <!--<li class="dropdown">-->
        <!--<a routerlink="userlist">{{'app.userlist' | translate}}</a>-->
        <!--</li>-->
      </ul>

      <ul *ngIf="!currentUser?.userName" class="nav navbar-nav navbar-right">
        <!--登陆-->
        <li routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}">
          <a routerLink="login">登录</a>
        </li>
        <!--注册-->
        <li routerLinkActive="active">
          <a routerLink="register">注册</a>
        </li>
      </ul>


      <ul *ngIf="currentUser?.userName" class="nav navbar-nav navbar-right">
        <li routerLinkActive="active">
          <a routerLink="user">用户：{{currentUser?.userName}}</a>
        </li>
        <li routerLinkActive="active">
          <a routerLink="manage">管理中心</a>
        </li>
        <li>
          <a href="javascript:void(0);" (click)="doLogout('success')">登出</a>
        </li>
      </ul>
    </div>
  </div>
</div>

<el-button (click)="testclick()">测试按钮</el-button>
<!-- 主体内容区域 -->
<div class="container main-container">
  <router-outlet></router-outlet>
</div>


<!-- 底部区域 -->
<div class="footer bs-footer">
  <div class="container">
    <div class="row">
      <p>
        底部显示内容
      </p>
    </div>
  </div>
</div>
